package com.yswy.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yswy.domain.entity.PackageBingVip;
import com.yswy.domain.entity.VipPrice;
import com.yswy.domain.vo.dto.BaseFilter;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface PackageBingVipMapper extends BaseMapper<PackageBingVip> {

    List<VipPrice> getByPackageId(@Param("packageId") Long packageId
             , @Param("isPay") Boolean isPay);
    List<VipPrice> getVipPageDisposable(@Param("packageId") Long packageId);


    Page<VipPrice> pageByPackageId(@Param("packageId") Long packageId,@Param("goodType") Integer goodType , Page<BaseFilter> page);
}
